package com.qf.controller;

import com.qf.common.request.UserRequestParams;
import com.qf.common.vo.ResponseResult;
import com.qf.service.UserService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/*
   @author 86155
   @ClassName: com.qf.controller.UserController
   @Description: 该类的功能描述
   @date: 2021/10/10 17:32 
*/
@RestController
@RequestMapping("/user")
public class UserController {
    @Resource
    private UserService userService;

    @PostMapping("/add")
    public ResponseResult<Boolean> add(@RequestBody UserRequestParams userRequestParams) {
        Boolean flag = userService.add(userRequestParams);
        return ResponseResult.success(flag);
    }
}
